# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

inherit rpm

DESCRIPTION="RAD tool for wxWidgets"
HOMEPAGE="http://www.roebling.de/"

LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""

SRC_URI="http://www.roebling.de/wxDesignerU-2.11-0.i386.rpm"

RDEPEND=">=sys-libs/glibc-2.2.9
	=x11-libs/gtk+-2* 
	>=media-libs/libpng-1.2*
	media-libs/jpeg
	>=media-libs/tiff-3*
	dev-libs/expat"

BASE=/opt/wxDesigner

src_install() {
	cd ${WORKDIR}/opt/wxDesigner
	dodir ${BASE}
	cp -R . ${D}${BASE}
	chmod a+xr `find ${D}${BASE} -type d`
	
	dodir /opt/bin
	dosym ${BASE}/wxDesigner /opt/bin
	dodir /usr/share/pixmaps
	dosym ${BASE}/wxDesigner.png /usr/share/pixmaps
}
